package com.bigdata.schaduler.client;

import com.bigdata.schaduler.service.*;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DolphinApiClient {
  private DolphinClient dolphinClient;
  private ExecutorService executorService;
  private ProjectService projectService;
  private ProcessDefineService processService;
  private ProcessInstanceService processInstanceService;
  private TaskDefineService taskDefineService;
  private TaskInstanceService taskInstanceService;
  private SchedulerService schedulerService;
  private WorkerGroupService workerGroupService;


  public DolphinApiClient(DolphinClient dolphinClient) {
    this.executorService = new ExecutorService(dolphinClient);
    this.projectService = new ProjectService(dolphinClient);
    this.processService = new ProcessDefineService(dolphinClient);
    this.processInstanceService = new ProcessInstanceService(dolphinClient);
    this.taskDefineService = new TaskDefineService(dolphinClient);
    this.taskInstanceService = new TaskInstanceService(dolphinClient);
    this.schedulerService = new SchedulerService(dolphinClient);
    this.workerGroupService = new WorkerGroupService(dolphinClient);
  }
}
